package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.domain.FoodBean;
import com.ruoyi.system.api.domain.ShopBean;
import com.ruoyi.system.api.domain.ShopBillDetailBean;
import com.ruoyi.system.api.factory.ThirdServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteThirdService", value = "ruoyi-third", fallbackFactory = ThirdServiceFallbackFactory.class)public interface RemoteThirdService
{
    @GetMapping("/huaLaLa/getDocAllShops")
    public List<ShopBean> getDocAllShops(@RequestParam(value = "groupID") Long groupID) ;

    @GetMapping("/huaLaLa/getMenu")
    public List<FoodBean> getMenu(@RequestParam(value = "groupID") Long groupID,
                                  @RequestParam(value = "shopID") Long shopID);


    @GetMapping("/huaLaLa/getShopBillDetail")
    public List<ShopBillDetailBean> getShopBillDetail(@RequestParam(value = "groupID") Long groupID,
                                            @RequestParam(value = "shopID") Long shopID,
                                            @RequestParam(value = "reportDate") Long reportDate);


}
